import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询SAP物料接口列表
export function listSapItem(query) {
    return request({
        url: '/interact/sapItem/list',
        method: 'get',
        params: query
    })
}

// 查询SAP物料接口详细
export function getSapItem(itemId) {
    return request({
        url: '/interact/sapItem/' + parseStrEmpty(itemId),
        method: 'get'
    })
}

// 新增SAP物料接口
export function addSapItem(data) {
    return request({
        url: '/interact/sapItem',
        method: 'post',
        data: data
    })
}

// 修改SAP物料接口
export function updateSapItem(data) {
    return request({
        url: '/interact/sapItem',
        method: 'put',
        data: data
    })
}

// 删除SAP物料接口
export function delSapItem(itemId) {
    return request({
        url: '/interact/sapItem/' + itemId,
        method: 'delete'
    })
}
